package com.jspx.txweb.evasive.condition;

import com.jspx.txweb.util.RequestUtil;
import com.jspx.utils.StringUtil;

/**
 * Created by Administrator on 2017/6/15.
 *
 */
public class UserAgentDecide extends AbstractDecide  {
    public boolean execute()
    {
        if (StringUtil.isNULL(content)) return false;
        String userAgent = RequestUtil.getUserAgent(request);
        return userAgent!=null&&userAgent.toLowerCase().contains(content.toLowerCase());
    }

}
